HAL WWDG types migration ¶
HAL WWDG callback ID type definition ¶
|
HAL1 |
HAL2 |
|---|---|
typedef enum
{
HAL_WWDG_EWI_CB_ID,
HAL_WWDG_MSPINIT_CB_ID
} HAL_WWDG_CallbackIDTypeDef;
|
Removed. Note The callback registration in HAL2 is handled by specific functions for each WWDG event. See HAL WWDG Callback Register Functions for more details. HAL_WWDG_MSPINIT_CB_ID is removed because the function HAL_WWDG_MspInit is removed. |
HAL WWDG initialization type definition ¶
In HAL2, the WWDG_InitTypeDef structure has been deleted. The prescaler, window, and counter values are now calculated using private functions.
|
HAL1 |
HAL2 |
|---|---|
typedef struct
{
uint32_t Prescaler;
uint32_t Window;
uint32_t Counter;
uint32_t EWIMode
} WWDG_InitTypeDef;
|
Removed,
The values of prescaler, window, counter, and the early wakeup interrupt
mode are now calculated and configured based on the input parameters of
the function HAL_WWDG_Start().
|
HAL WWDG handle type definition ¶
In HAL2, the HAL WWDG handle structure has been renamed from WWDG_HandleTypeDef to hal_wwdg_handle_t.
|
HAL1 |
HAL2 |
|---|---|
WWDG_HandleTypeDef
|
hal_wwdg_handle_t
|
Related concept: Renaming of the handle structure
HAL WWDG callback type definition ¶
|
HAL1 |
HAL2 |
|---|---|
|
pWWDG_CallbackTypeDef |
hal_wwdg_cb_t |
Related concept: Replaced TypeDef suffix with _t in type names